import http from '@/utils/request.js';

// 项目合同统计-即将到期项目
export const comingExpiryProject = (data) => {
	// return http.post('/repair/building/comingExpiryProject', data, 1);
	return http.request({
		url: '/repair/building/comingExpiryProject',
		method: 'post',
		data,
		textJson: true,
	});
};

// 项目合同统计-到期未签项目
export const expiryProject = (data) => {
	// return http.post('/repair/building/expiryProject', data, 1);
	return http.request({
		url: '/repair/building/expiryProject',
		method: 'post',
		data,
		textJson: true,
	});
};

// 项目统计-电梯统计
export const projectElevator = (data) => {
	// return http.post('/repair/building/projectElevator', data, 1);
	return http.request({
		url: '/repair/building/projectElevator',
		method: 'post',
		data,
		textJson: true,
	});
};

// 项目统计-年审梯/非年审梯
export const projectElevatorUseType = (data) => {
	// return http.post('/repair/building/projectElevatorUseType', data, 1);
	return http.request({
		url: '/repair/building/projectElevatorUseType',
		method: 'post',
		data,
		textJson: true,
	});
};

// 项目统计-品牌
export const brandElevator = (data) => {
	// return http.post('/repair/building/brandElevator', data, 1);
	return http.request({
		url: '/repair/building/brandElevator',
		method: 'post',
		data,
		textJson: true,
	});
};

// 保养统计
export const getPlanStatistic = (data) => {
	// return http.post('/repair/plan/content/statistical/getPlanContentStatisticalInfo',data,1)
	// return http.post('/repairCheck/plan/check', data);
	return http.request({
		url: '/repairCheck/plan/check',
		method: 'post',
		data,
		textJson: true,
	});
};

// 获取保养列表
export const getRepairCheck = (data) => {
	// return http.post('/repairCheck/plan/list', data, 1);
	return http.request({
		url: '/repairCheck/plan/list',
		method: 'post',
		data,
		textJson: true,
	});
};

// 获取保养评分
export const getRepairScore = (data) => {
	// return http.post('/repairCheck/score/list', data, 1);
	return http.request({
		url: '/repairCheck/score/list',
		method: 'post',
		data,
		textJson: true,
	});
};

// 获取任务条数
export const getRepairCount = (data) => {
	// return http.post('/repairCheck/plan/count', data, 1);
	return http.request({
		url: '/repairCheck/plan/count',
		method: 'post',
		data,
		textJson: true,
	});
};

// 保养详情->获取工单组人员
export const getGroundCount = (data) => {
	// return http.get('/repairCheck/getPlanUserInfo', data);
	return http.request({
		url: '/repairCheck/getPlanUserInfo',
		method: 'get',
		data,
	});
};

/* ------------- 电梯统计 ---------------- */

// 电梯保养排期概况
export const getOverview = (data) => {
	// return http.get('/maintain/elevator/statistics/plan/schedule/overview', data);
	return http.request({
		url: '/maintain/elevator/statistics/plan/schedule/overview',
		method: 'get',
		data,
	});
};

// 维保中年审梯保养合规情况
export const getStatus = (data) => {
	// return http.get('/maintain/elevator/statistics/plan/compliance/status', data);
	return http.request({
		url: '/maintain/elevator/statistics/plan/compliance/status',
		method: 'get',
		data,
	});
};

// 暂停维保电梯总览
export const getLose = (data) => {
	// return http.get('/maintain/elevator/statistics/plan/lose', data);
	return http.request({
		url: '/maintain/elevator/statistics/plan/lose',
		method: 'get',
		data,
	});
};

// 从未排期电梯exce
export const getNotScheduleExcel = (data) => {
	// return http.get('/maintain/elevator/statistics/not/plan/schedule/excel', data);
	return http.request({
		url: '/maintain/elevator/statistics/not/plan/schedule/excel',
		method: 'get',
		data,
	});
};

// 电梯保养排期概括excel
export const getScheduleExcel = (data) => {
	// return http.get('/maintain/elevator/statistics/plan/schedule/excel', data);
	return http.request({
		url: '/maintain/elevator/statistics/plan/schedule/excel',
		method: 'get',
		data,
	});
};

// 维保中年审梯保养合规情况excel
export const getStatusExcel = (data) => {
	// return http.get('/maintain/elevator/statistics/plan/compliance/status/excel', data);
	return http.request({
		url: '/maintain/elevator/statistics/plan/compliance/status/excel',
		method: 'get',
		data,
	});
};

// 暂停维保电梯总览excel
export const getLoseExcel = (data) => {
	// return http.get('/maintain/elevator/statistics/plan/lose/excel', data);
	return http.request({
		url: '/maintain/elevator/statistics/plan/lose/excel',
		method: 'get',
		data,
	});
};

// 查询单个用户统计图表
export const getUserStatistic = (data) => {
	// return http.get('/repairCheck/check/plan/user/count', data);
	return http.request({
		url: '/repairCheck/check/plan/user/count',
		method: 'get',
		data,
	});
};

// 查询用户工单统计趋势
export const getUserTrend = (data) => {
	// return http.post('/repairCheck/user/check/plan/trend', data, 1);
	return http.request({
		url: '/repairCheck/user/plan/trend',
		method: 'post',
		data,
		textJson: true,
	});
};

// 查询分组用户统计图表
export const getGroupStatistic = (data) => {
	// return http.post('/repairCheck/check/plan/dept/count', data, 1);
	return http.request({
		url: '/repairCheck/check/plan/dept/count',
		method: 'post',
		data,
		textJson: true,
	});
};

/* ------------- 绩效统计 ---------------- */

//  工单日历表
export const getCalendarPlans = (data) => {
	// return http.post('/repair/work/statistical/chart/1', data, 1);
	return http.request({
		url: '/repair/work/statistical/chart/1',
		method: 'post',
		data,
		textJson: true,
	});
};

//  每日作业明细 维保员
export const getDayDetail2 = (data) => {
	// return http.post('/repair/work/statistical/chart/2', data, 1);
	return http.request({
		url: '/repair/work/statistical/chart/2',
		method: 'post',
		data,
		textJson: true,
	});
};
//  每日作业明细 经理组长 - 按组
export const getDayDetail3 = (data) => {
	// return http.post('/repair/work/statistical/chart/3', data, 1);
	return http.request({
		url: '/repair/work/statistical/chart/3',
		method: 'post',
		data,
		textJson: true,
	});
};
//  每日作业明细 经理组长 - 按人
export const getDayDetail4 = (data) => {
	// return http.post('/repair/work/statistical/chart/4', data, 1);
	return http.request({
		url: '/repair/work/statistical/chart/4',
		method: 'post',
		data,
		textJson: true,
	});
};

//  作业汇总（数量）-作业时长-维保员
export const getTimeStsMain = (data) => {
	// return http.post('/repair/work/statistical/chart/5', data, 1);
	return http.request({
		url: '/repair/work/statistical/chart/5',
		method: 'post',
		data,
		textJson: true,
	});
};

//  作业汇总（数量）-作业时长-维保组长
export const getTimeStsGroup = (data) => {
	// return http.post('/repair/work/statistical/chart/6', data, 1);
	return http.request({
		url: '/repair/work/statistical/chart/6',
		method: 'post',
		data,
		textJson: true,
	});
};

//  作业汇总-作业时长明细-按组
export const getWorkRecordGroup = (data) => {
	// return http.post('/repair/work/statistical/chart/16', data, 1);
	return http.request({
		url: '/repair/work/statistical/chart/16',
		method: 'post',
		data,
		textJson: true,
	});
};

//  作业汇总-作业时长明细-按人
export const getWorkRecordUser = (data) => {
	// return http.post('/repair/work/statistical/chart/17', data, 1);
	return http.request({
		url: '/repair/work/statistical/chart/17',
		method: 'post',
		data,
		textJson: true,
	});
};

//  作业汇总-作业工单 -饼图
export const getOrderPie = (data) => {
	// return http.post('/repair/work/statistical/chart/10', data, 1);
	return http.request({
		url: '/repair/work/statistical/chart/10',
		method: 'post',
		data,
		textJson: true,
	});
};
// 作业汇总-作业工单明细-按组
export const getOrderDetailGroup = (data) => {
	// return http.post('/repair/work/statistical/chart/11', data, 1);
	return http.request({
		url: '/repair/work/statistical/chart/11',
		method: 'post',
		data,
		textJson: true,
	});
};
// 作业汇总-作业工单明细-按人
export const getOrderDetailUser = (data) => {
	// return http.post('/repair/work/statistical/chart/12', data, 1);
	return http.request({
		url: '/repair/work/statistical/chart/12',
		method: 'post',
		data,
		textJson: true,
	});
};

export const getTimeLineData = (data) => {
	// return http.post('/repair/work/statistical/chart/7', data, 1);
	return http.request({
		url: '/repair/work/statistical/chart/7',
		method: 'post',
		data,
		textJson: true,
	});
};

export const getTimeLineDataGroup = (data) => {
	// return http.post('/repair/work/statistical/chart/9', data, 1);
	return http.request({
		url: '/repair/work/statistical/chart/9',
		method: 'post',
		data,
		textJson: true,
	});
};

export const getTimeLineDataUser = (data) => {
	// return http.post('/repair/work/statistical/chart/8', data, 1);
	return http.request({
		url: '/repair/work/statistical/chart/8',
		method: 'post',
		data,
		textJson: true,
	});
};

export const getOrderLineData = (data) => {
	// return http.post('/repair/work/statistical/chart/13', data, 1);
	return http.request({
		url: '/repair/work/statistical/chart/13',
		method: 'post',
		data,
		textJson: true,
	});
};

export const getOrderLineDataGroup = (data) => {
	// return http.post('/repair/work/statistical/chart/15', data, 1);
	return http.request({
		url: '/repair/work/statistical/chart/15',
		method: 'post',
		data,
		textJson: true,
	});
};

export const getOrderLineDataUser = (data) => {
	// return http.post('/repair/work/statistical/chart/14', data, 1);
	return http.request({
		url: '/repair/work/statistical/chart/14',
		method: 'post',
		data,
		textJson: true,
	});
};
// 工单评分值占比
export const getWorkScoreChar = (data) => {
	// return http.post('/sida-maintain-repair/maintainPlanScoreRecord/order/score/pie/char', data, 1);
	return http.request({
		url: '/sida-maintain-repair/maintainPlanScoreRecord/order/score/pie/char',
		method: 'post',
		data,
		textJson: true,
	});
};
// 工单评分对比-按组
export const getWorkScoreCharDept = (data) => {
	// return http.post('/sida-maintain-repair/maintainPlanScoreRecord/order/score/compare/dept/char', data, 1);
	return http.request({
		url: '/sida-maintain-repair/maintainPlanScoreRecord/order/score/compare/dept/char',
		method: 'post',
		data,
		textJson: true,
	});
};
// 工单评分对比-按人
export const getWorkScoreCharUser = (data) => {
	// return http.post('/sida-maintain-repair/maintainPlanScoreRecord/order/score/compare/user/char', data, 1);
	return http.request({
		url: '/sida-maintain-repair/maintainPlanScoreRecord/order/score/compare/user/char',
		method: 'post',
		data,
		textJson: true,
	});
};
// 工单评分明细-按组
export const getWorkDetailedDept = (data) => {
	// return http.post('/sida-maintain-repair/maintainPlanScoreRecord/order/score/detail/dept/char', data, 1);
	return http.request({
		url: '/sida-maintain-repair/maintainPlanScoreRecord/order/score/detail/dept/char',
		method: 'post',
		data,
		textJson: true,
	});
};
// 工单评分明细-按人
export const getWorkDetailedUser = (data) => {
	// return http.post('/sida-maintain-repair/maintainPlanScoreRecord/order/score/detail/user/char', data, 1);
	return http.request({
		url: '/sida-maintain-repair/maintainPlanScoreRecord/order/score/detail/user/char',
		method: 'post',
		data,
		textJson: true,
	});
};

/* -----下面是保养接口  保养作业人工时-------*/
// 保养作业时长相关
// 保养作业人时长数量统计
export const getWorkTimeNums = (data) => {
	// return http.post('/plan/check/statistics/detail/dept/work/time', data, 1);
	return http.request({
		url: '/plan/check/statistics/detail/dept/work/time',
		method: 'post',
		data,
		textJson: true,
	});
};

// 查询保养作业人时长统计 按组
export const getWorkTimeGroupRecords = (data) => {
	// return http.post('/plan/check/statistics/count/dept/work/time', data, 1);
	return http.request({
		url: '/plan/check/statistics/count/dept/work/time',
		method: 'post',
		data,
		textJson: true,
	});
};

// 查询保养作业人时长统计 按人
export const getWorkTimeUserRecords = (data) => {
	// return http.post('/plan/check/statistics/count/dept/user/work/time', data, 1);
	return http.request({
		url: '/plan/check/statistics/count/dept/user/work/time',
		method: 'post',
		data,
		textJson: true,
	});
};

// 查询保养工作人时长趋势整体
export const getWorkTimeLines = (data) => {
	// return http.post('/plan/check/statistics/trend/entirety/work/time', data, 1);
	return http.request({
		url: '/plan/check/statistics/trend/entirety/work/time',
		method: 'post',
		data,
		textJson: true,
	});
};

// 查询保养工作人时长趋势对比按组
export const getWorkTimeGroupLines = (data) => {
	// return http.post('/plan/check/statistics/trend/contrast/dept/work/time', data, 1);
	return http.request({
		url: '/plan/check/statistics/trend/contrast/dept/work/time',
		method: 'post',
		data,
		textJson: true,
	});
};

// 查询保养工作人时长趋势对比按人
export const getWorkTimeUserLines = (data) => {
	// return http.post('/plan/check/statistics/trend/contrast/dept/user/work/time', data, 1);
	return http.request({
		url: '/plan/check/statistics/trend/contrast/dept/user/work/time',
		method: 'post',
		data,
		textJson: true,
	});
};

// 查询保养统计工作时长详情-个人
export const getWorkTimePerson = (data) => {
	// return http.post('/plan/check/statistics/detail/user/work/time', data, 1);
	return http.request({
		url: '/plan/check/statistics/detail/user/work/time',
		method: 'post',
		data,
		textJson: true,
	});
};

/* -----下面是保养接口  保养作业时长-------*/

// 保养作业时长数量统计
export const getWorkDurationNums = (data) => {
	return http.request({
		url: '/plan/check/statistics/detail/dept/work/duration',
		method: 'post',
		data,
		textJson: true,
	});
};

// 查询保养作业时长统计 按组
export const getStatisticsDurationGroupRecords = (data) => {
	return http.request({
		url: '/plan/check/statistics/count/dept/work/duration',
		method: 'post',
		data,
		textJson: true,
	});
};

// 查询保养作业时长统计 按人
export const getWorkDurationUserRecords = (data) => {
	return http.request({
		url: '/plan/check/statistics/count/dept/user/work/duration',
		method: 'post',
		data,
		textJson: true,
	});
};

// 查询保养工作时长趋势整体
export const getWorkDurationLines = (data) => {
	return http.request({
		url: '/plan/check/statistics/trend/entirety/work/duration',
		method: 'post',
		data,
		textJson: true,
	});
};

// 查询保养工作时长趋势对比按组
export const getWorkDurationGroupLines = (data) => {
	return http.request({
		url: '/plan/check/statistics/trend/contrast/dept/work/duration',
		method: 'post',
		data,
		textJson: true,
	});
};

// 查询保养工作人时长趋势对比按人
export const getWorkDurationUserLines = (data) => {
	return http.request({
		url: '/plan/check/statistics/trend/contrast/dept/user/work/duration',
		method: 'post',
		data,
		textJson: true,
	});
};

// 查询保养统计工作时长详情-个人
export const getWorkDurationPerson = (data) => {
	return http.request({
		url: '/plan/check/statistics/detail/user/work/duration',
		method: 'post',
		data,
		textJson: true,
	});
};

/* -----保养执行状态统计------*/

// 保养状态执行饼图
export const getStatusDept = (data) => {
	// return http.post('/plan/check/statistics/detail/dept/status', data, 1);
	return http.request({
		url: '/plan/check/statistics/detail/dept/status',
		method: 'post',
		data,
		textJson: true,
	});
};
// 保养执行个人图表
export const getStatusUser = (data) => {
	// return http.post('/plan/check/statistics/detail/user/status', data, 1);
	return http.request({
		url: '/plan/check/statistics/detail/user/status',
		method: 'post',
		data,
		textJson: true,
	});
};
// 表格个人
export const getStatusTableSingle = (data) => {
	// return http.post('/plan/check/statistics/count/user/status', data, 1);
	return http.request({
		url: '/plan/check/statistics/count/user/status',
		method: 'post',
		data,
		textJson: true,
	});
};
// 保养执行按组
export const getWorkStatusGroupRecords = (data) => {
	// return http.post('/plan/check/statistics/count/dept/status', data, 1);
	return http.request({
		url: '/plan/check/statistics/count/dept/status',
		method: 'post',
		data,
		textJson: true,
	});
};
// 查询保养作业时长统计 按人
export const getWorkStatusUserRecords = (data) => {
	// return http.post('/plan/check/statistics/count/dept/user/status', data, 1);
	return http.request({
		url: '/plan/check/statistics/count/dept/user/status',
		method: 'post',
		data,
		textJson: true,
	});
};
// 趋势
// 趋势整体
export const getWorkStatusLines = (data) => {
	// return http.post('/plan/check/statistics/trend/entirety/status', data, 1);
	return http.request({
		url: '/plan/check/statistics/trend/entirety/status',
		method: 'post',
		data,
		textJson: true,
	});
};

// 趋势对比按组
export const getWorkStatusGroupLines = (data) => {
	// return http.post('/plan/check/statistics/trend/contrast/dept/status', data, 1);
	return http.request({
		url: '/plan/check/statistics/trend/contrast/dept/status',
		method: 'post',
		data,
		textJson: true,
	});
};

// 趋势对比按人
export const getWorkStatusUserLines = (data) => {
	// return http.post('/plan/check/statistics/trend/contrast/dept/user/status', data, 1);
	return http.request({
		url: '/plan/check/statistics/trend/contrast/dept/user/status',
		method: 'post',
		data,
		textJson: true,
	});
};
/* ----------------------------------------------------------------------*/

/* 保养时效性*/
// 获取时效性饼图(多人)
export const getTimelinessPieDept = (data) => {
	// return http.post('/plan/check/statistics/detail/dept/timeliness', data, 1);
	return http.request({
		url: '/plan/check/statistics/detail/dept/timeliness',
		method: 'post',
		data,
		textJson: true,
	});
};
// 获取时效性饼图(单人)
export const getTimelinessPieUser = (data) => {
	// return http.post('/plan/check/statistics/detail/user/timeliness', data, 1);
	return http.request({
		url: '/plan/check/statistics/detail/user/timeliness',
		method: 'post',
		data,
		textJson: true,
	});
};
// 表格个人
export const getTimelinessTableSingle = (data) => {
	// return http.post('/plan/check/statistics/count/user/timeliness', data, 1);
	return http.request({
		url: '/plan/check/statistics/count/user/timeliness',
		method: 'post',
		data,
		textJson: true,
	});
};
// 保养时效性按组
export const getWorkTimelinesssGroupRecords = (data) => {
	// return http.post('/plan/check/statistics/count/dept/timeliness', data, 1);
	return http.request({
		url: '/plan/check/statistics/count/dept/timeliness',
		method: 'post',
		data,
		textJson: true,
	});
};
// 保养时效性按人
export const getWorkTimelinessUserRecords = (data) => {
	// return http.post('/plan/check/statistics/count/dept/user/timeliness', data, 1);
	return http.request({
		url: '/plan/check/statistics/count/dept/user/timeliness',
		method: 'post',
		data,
		textJson: true,
	});
};

// 趋势
// 查询保养时效性趋势整体
export const getTimelinesssLines = (data) => {
	// return http.post('/plan/check/statistics/trend/entirety/timeliness', data, 1);
	return http.request({
		url: '/plan/check/statistics/trend/entirety/timeliness',
		method: 'post',
		data,
		textJson: true,
	});
};

// 查询保养时效性趋势对比按组
export const getTimelinesssGroupLines = (data) => {
	// return http.post('/plan/check/statistics/trend/contrast/dept/timeliness', data, 1);
	return http.request({
		url: '/plan/check/statistics/trend/contrast/dept/timeliness',
		method: 'post',
		data,
		textJson: true,
	});
};

// 查询保养时效性趋势对比按人
export const getTimelinesssUserLines = (data) => {
	// return http.post('/plan/check/statistics/trend/contrast/dept/user/timeliness', data, 1);
	return http.request({
		url: '/plan/check/statistics/trend/contrast/dept/user/timeliness',
		method: 'post',
		data,
		textJson: true,
	});
};

/* ---------------------------------------------------------------------------------------*/

/* 逾期 Overdue*/
// 获取时效性饼图(多人)
export const getOverduePieDept = (data) => {
	// return http.post('/plan/check/statistics/detail/dept/overdue', data, 1);
	return http.request({
		url: '/plan/check/statistics/detail/dept/overdue',
		method: 'post',
		data,
		textJson: true,
	});
};
// 获取时效性饼图(单人)
export const getOverduePieUser = (data) => {
	// return http.post('/plan/check/statistics/detail/user/overdue', data, 1);
	return http.request({
		url: '/plan/check/statistics/detail/user/overdue',
		method: 'post',
		data,
		textJson: true,
	});
};
// 表格个人
export const getOverdueTableSingle = (data) => {
	// return http.post('/plan/check/statistics/count/user/overdue', data, 1);
	return http.request({
		url: '/plan/check/statistics/count/user/overdue',
		method: 'post',
		data,
		textJson: true,
	});
};
// 保养时效性按组
export const getWorkOverdueGroupRecords = (data) => {
	// return http.post('/plan/check/statistics/count/dept/overdue', data, 1);
	return http.request({
		url: '/plan/check/statistics/count/dept/overdue',
		method: 'post',
		data,
		textJson: 1,
	});
};
// 保养时效性按人
export const getWorkOverdueUserRecords = (data) => {
	// return http.post('/plan/check/statistics/count/dept/user/overdue', data, 1);
	return http.request({
		url: '/plan/check/statistics/count/dept/user/overdue',
		method: 'post',
		data,
		textJson: 1,
	});
};

// 趋势
// 查询保养时效性趋势整体
export const getOverdueLines = (data) => {
	// return http.post('/plan/check/statistics/trend/entirety/overdue', data, 1);
	return http.request({
		url: '/plan/check/statistics/trend/entirety/overdue',
		method: 'post',
		data,
		textJson: 1,
	});
};

// 查询保养时效性趋势对比按组
export const getOverdueGroupLines = (data) => {
	// return http.post('/plan/check/statistics/trend/contrast/dept/overdue', data, 1);
	return http.request({
		url: '/plan/check/statistics/trend/contrast/dept/overdue',
		method: 'post',
		data,
		textJson: 1,
	});
};

// 查询保养时效性趋势对比按人
export const getOverdueUserLines = (data) => {
	// return http.post('/plan/check/statistics/trend/contrast/dept/user/overdue', data, 1);
	return http.request({
		url: '/plan/check/statistics/trend/contrast/dept/user/overdue',
		method: 'post',
		data,
		textJson: 1,
	});
};

/* ---------------------------------------------------------------------------------------*/

/* 保养时长*/
// 饼图多人
export const getDurationDept = (data) => {
	// return http.post('/plan/check/statistics/detail/dept/duration', data, 1);
	return http.request({
		url: '/plan/check/statistics/detail/dept/duration',
		method: 'post',
		data,
		textJson: 1,
	});
};
// 饼图个人
export const getDurationUser = (data) => {
	// return http.post('/plan/check/statistics/detail/user/duration', data, 1);
	return http.request({
		url: '/plan/check/statistics/detail/user/duration',
		method: 'post',
		data,
		textJson: 1,
	});
};
// 表格个人
export const getWorkDurationTableSingle = (data) => {
	// return http.post('/plan/check/statistics/count/user/duration', data, 1);
	return http.request({
		url: '/plan/check/statistics/count/user/duration',
		method: 'post',
		data,
		textJson: 1,
	});
};
// 表格多人按组
export const getWorkDurationGroupRecords = (data) => {
	// return http.post('/plan/check/statistics/count/dept/duration', data, 1);
	return http.request({
		url: '/plan/check/statistics/count/dept/duration',
		method: 'post',
		data,
		textJson: 1,
	});
};
// 表格多人按人
export const getDurationUserRecords = (data) => {
	// return http.post('/plan/check/statistics/count/dept/user/duration', data, 1);
	return http.request({
		url: '/plan/check/statistics/count/dept/user/duration',
		method: 'post',
		data,
		textJson: 1,
	});
};
// 趋势
// 趋势整体
// export const getWorktDurationLines = (data) => {
// 	return http.post('/plan/check/statistics/trend/entirety/duration', data, 1)
// }

// 趋势对比按组
// export const getWorkDurationGroupLines = (data) => {
// 	return http.post('/plan/check/statistics/trend/contrast/dept/duration', data, 1)
// }

// 趋势对比按人
// export const getWorkDurationUserLines = (data) => {
// 	return http.post('/plan/check/statistics/trend/contrast/dept/user/duration', data, 1)
// }
/* ---------------------------------------------------------------*/

/* ---签到签退-----*/

// 饼图多人
export const getSignDept = (data) => {
	// return http.post('/plan/check/statistics/detail/dept/sign', data, 1);
	return http.request({
		url: '/plan/check/statistics/detail/dept/sign',
		method: 'post',
		data,
		textJson: 1,
	});
};
// 饼图个人
export const getSignUser = (data) => {
	// return http.post('/plan/check/statistics/detail/user/sign', data, 1);
	return http.request({
		url: '/plan/check/statistics/detail/user/sign',
		method: 'post',
		data,
		textJson: 1,
	});
};
// 表格个人
export const getSignTableSingle = (data) => {
	// return http.post('/plan/check/statistics/count/user/sign', data, 1);
	return http.request({
		url: '/plan/check/statistics/count/user/sign',
		method: 'post',
		data,
		textJson: 1,
	});
};
// 表格按组
export const getSignGroupRecords = (data) => {
	// return http.post('/plan/check/statistics/count/dept/sign', data, 1);
	return http.request({
		url: '/plan/check/statistics/count/dept/sign',
		method: 'post',
		data,
		textJson: 1,
	});
};
// 表格按人
export const getSignUserRecords = (data) => {
	// return http.post('/plan/check/statistics/count/dept/user/sign', data, 1);
	return http.request({
		url: '/plan/check/statistics/count/dept/user/sign',
		method: 'post',
		data,
		textJson: 1,
	});
};
// 趋势
// 趋势整体
export const getSignLines = (data) => {
	// return http.post('/plan/check/statistics/trend/entirety/sign', data, 1);
	return http.request({
		url: '/plan/check/statistics/trend/entirety/sign',
		method: 'post',
		data,
		textJson: 1,
	});
};

// 趋势对比按组
export const getSignGroupLines = (data) => {
	// return http.post('/plan/check/statistics/trend/contrast/dept/sign', data, 1);
	return http.request({
		url: '/plan/check/statistics/trend/contrast/dept/sign',
		method: 'post',
		data,
		textJson: 1,
	});
};

// 趋势对比按人
export const getSignUserLines = (data) => {
	// return http.post('/plan/check/statistics/trend/contrast/dept/user/sign', data, 1);
	return http.request({
		url: '/plan/check/statistics/trend/contrast/dept/user/sign',
		method: 'post',
		data,
		textJson: 1,
	});
};

/* ---维修统计-----*/
// 状态图表统计
export const getRepairStatus = (data) => {
	// return http.post('/plan/check/statistics/wx/status/count', data, 1);
	return http.request({
		url: '/plan/check/statistics/wx/status/count',
		method: 'post',
		data,
		textJson: 1,
	});
};
// 重复图表故障统计
export const getRepairRepetition = (data) => {
	// return http.post('/plan/check/statistics/wx/repetition/count', data, 1);
	return http.request({
		url: '/plan/check/statistics/wx/repetition/count',
		method: 'post',
		data,
		textJson: 1,
	});
};
// 项目重复电梯明细
export const getRepetitionDetail = (data) => {
	// return http.post('/plan/check/statistics/wx/building/elevator/repetition/detail', data, 1);
	return http.request({
		url: '/plan/check/statistics/wx/building/elevator/repetition/detail',
		method: 'post',
		data,
		textJson: 1,
	});
};
// 故障重复统计
export const getRepetitionCount = (data) => {
	// return http.post('/plan/check/statistics/wx/building/elevator/repetition/count', data, 1);
	return http.request({
		url: '/plan/check/statistics/wx/building/elevator/repetition/count',
		method: 'post',
		data,
		textJson: 1,
	});
};

// 状态统计
export const getStatusCount = (data) => {
	// return http.post('/plan/check/statistics/wx/building/count', data, 1);
	return http.request({
		url: '/plan/check/statistics/wx/building/count',
		method: 'post',
		data,
		textJson: 1,
	});
};
// 状态列表
export const getStatusDetail = (data) => {
	// return http.post('/plan/check/statistics/wx/building/detail', data, 1);
	return http.request({
		url: '/plan/check/statistics/wx/building/detail',
		method: 'post',
		data,
		textJson: 1,
	});
};

// 电梯统计 
// 电梯统计总览
export const getElevatorAllcount = (data) => {
	// return http.get('/repair/elevator/statistics/principal/count', data);
	return http.request({
		url: '/repair/elevator/statistics/principal/count',
		method: 'get',
		data,
	});
};

// 下载excel
export const getElevatorExcel = (data) => {
	// return http.get('/repair/elevator/statistics/down/excel', data);
	return http.request({
		url: '/repair/elevator/statistics/down/excel',
		method: 'get',
		data,
	});
};

export const getElevatorPage = (data) => {
	return http.request({
		url: '/plan/check/statistics/building/elevator/page',
		method: 'get',
		data,
	});
};